from pypinyin import lazy_pinyin


name_prefix = ""
with open("namelist.txt" , "r" , encoding="UTF-8") as f:
    for hanzi_name in f.readlines():
        py_name = lazy_pinyin(hanzi_name)
        py_name = py_name[::-1]
        for i in py_name[::-1]:
            name_prefix = name_prefix + i
    print(name_prefix)